/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 三方票号查询

// 查询 /ttFiTripartite/queryTripartiteBill
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartite/queryTripartiteBill`, params)

// 获取所有资金类型
export const gettmFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)

// 导出 /ttFiTripartite/tripartiteBillExportExcel
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartite/tripartiteBillExportExcel`, params, {
  responseType: 'blob'
});

// 余额锁定明细	/ttFiTripartite/balanceDetail
export const detailInfo = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartite/balanceDetail`, {
  params
})

// 余额锁定明细导出	/ttFiTripartite/balanceDetailExportExcel

export const balanceExportExcel = params => {
  params = Object.assign(params, {
    menuId: '-1'
  });
  return axios({
    url: `${SERVER.WHOLESALES}/ttFiTripartite/balanceDetailExportExcel`,
    method: 'get',
    params: params,
    responseType: 'blob'
  });
};
